import request from '../untils/requst';
// 获取验证码
export const getSmsCode = (phone) => {
    return request({
        url: '/user/getSmsCode?phone=' + phone,
        method: 'get'
    })
}


// 登录
export const login = (phone, smsCode) => {
    return request({
        url: '/user/login',
        method: 'post',
        data: { phone: phone, smsCode: smsCode }
    })
}